package com.magicalcoder.youyaboot.model.finance;
import com.magicalcoder.lowcode.anotation.column.MagicalColumn;
import com.magicalcoder.lowcode.anotation.table.MagicalTable;
import lombok.Data;
import javax.persistence.*;

@Data
@Entity
@Table(catalog="[finance]",name="[report]")
@MagicalTable(comment = "所有报表信息")
public class Report{
    @Column(name="[name]" )
    @MagicalColumn(comment="报表名称")
    private String name;

    @Column(name="[period]" )
    @MagicalColumn(comment="报表周期")
    private String period;

    @Column(name="[id]",length = 20)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    private Integer id;//主键

    @Column(name="[type]" )
    @MagicalColumn(comment="报表类型")
    private Integer type;


}
